<div class="problemindexholder" problemindex="A">
 <div class="ttypography">
  <div class="problem-statement">
   <div class="header">
    <div class="title">
     A. Lucky Year
    </div>
    <div class="time-limit">
     <div class="property-title">
      time limit per test
     </div>
     1 second
    </div>
    <div class="memory-limit">
     <div class="property-title">
      memory limit per test
     </div>
     256 megabytes
    </div>
    <div class="input-file">
     <div class="property-title">
      input
     </div>
     standard input
    </div>
    <div class="output-file">
     <div class="property-title">
      output
     </div>
     standard output
    </div>
   </div>
   <div>
    <p>
     Apart from having lots of holidays throughout the year, residents of Berland also have whole
     <span class="tex-font-style-it">
      lucky
     </span>
     years. Year is considered
     <span class="tex-font-style-it">
      lucky
     </span>
     if it has no more than
     <span class="tex-font-style-tt">
      1
     </span>
     non-zero digit in its number. So years 100, 40000, 5 are
     <span class="tex-font-style-it">
      lucky
     </span>
     and 12, 3001 and 12345 are not.
    </p>
    <p>
     You are given current year in Berland. Your task is to find how long will residents of Berland wait till the next
     <span class="tex-font-style-it">
      lucky
     </span>
     year.
    </p>
   </div>
   <div class="input-specification">
    <div class="section-title">
     Input
    </div>
    <p>
     The first line contains integer number
     <span class="tex-span">
      <i>
       n
      </i>
     </span>
     (
     <span class="tex-span">
      1 ≤
      <i>
       n
      </i>
      ≤ 10
      <sup class="upper-index">
       9
      </sup>
     </span>
     ) — current year in Berland.
    </p>
   </div>
   <div class="output-specification">
    <div class="section-title">
     Output
    </div>
    <p>
     Output amount of years from the current year to the next
     <span class="tex-font-style-it">
      lucky
     </span>
     one.
    </p>
   </div>
   <div class="sample-tests">
    <div class="section-title">
     Examples
    </div>
    <div class="sample-test">
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>4<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>1<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>201<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>99<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>4000<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>1000<br/></pre>
     </div>
    </div>
   </div>
   <div class="note">
    <div class="section-title">
     Note
    </div>
    <p>
     In the first example next
     <span class="tex-font-style-it">
      lucky
     </span>
     year is 5. In the second one — 300. In the third — 5000.
    </p>
   </div>
  </div>
  <p>
  </p>
 </div>
</div>
